package com.yhstudio.designPattern.templateMethod;

public class Test {
    public static void main(String[] args) {
        AbstractMediaSite mp4 = new MediaSiteMp4();
        mp4.play();
        mp4.close();
        System.out.println("---");
        AbstractMediaSite mp3 = new MediaSiteMp3();
        mp3.play();
        mp3.close();
    }
}
